x86/nestedhvm: provide some stubs for p2m code
authorWei Liu <wei.liu2@citrix.com>
Mon, 13 Aug 2018 14:02:32 +0000 (15:02 +0100)
committerWei Liu <wei.liu2@citrix.com>
Sun, 26 Aug 2018 10:01:03 +0000 (11:01 +0100)
commite5d6ddcd31a6113e4a3db7a235ca78770fe8f401
tree751a6e5d85deb81be67f69ec692860e79ce171fd
parent06d473a135635ab388151d1918401908f67fdb57
x86/nestedhvm: provide some stubs for p2m code

Make two functions static inline so that they can be referenced in p2m
code. Check nestedhvm is enabled before calling
nestedhvm_vmcx_flushtlb (which also has a side effect of not issuing
unnecessary IPIs for non-nested case).

While moving, reformat code and use proper boolean.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/nestedhvm.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/hvm/nestedhvm.h